import { IReport } from "@/components/Kiosk/index";
const KioskStore = {
  state: {
    reportProblemList: [],
    signOffList: [],
    selectedReport: null,
    isReportProblem: true,
  },
  mutations: {
    setReportProblemList(
      state: { reportProblemList: Array<IReport> },
      reportProblemList: Array<IReport>
    ) {
      state.reportProblemList = reportProblemList;
    },
    setSignOffList(
      state: { signOffList: Array<IReport> },
      signOffList: Array<IReport>
    ) {
      state.signOffList = signOffList;
    },
    setSelectedReport(
      state: { selectedReport: IReport },
      selectedReport: IReport
    ) {
      state.selectedReport = selectedReport;
    },
    setIsReportProblem(
      state: { isReportProblem: boolean },
      isReportProblem: boolean
    ) {
      state.isReportProblem = isReportProblem;
    },
  },
  actions: {},
};
export { KioskStore };
